import http from '@/module/io/http'
// const perfix = '/oy'
const perfix = ''

/* 获取订单列表 */
export const getOrderList = async (params) => {
  let res = await http.get(`${perfix}/order`, { params })
  return res
}
/* 取消订单 */
export const cancelProductOrder = async (params) => {
  let res = await http.get(`${perfix}/order/cancelProductOrder`, { params })
  return res
}
/* 查询订单详情 */
export const getProductOrder = async (params) => {
  let res = await http.get(`${perfix}/order/getProductOrder`, { params })
  return res
}
/* 资源消费分布饼图-金额统计 */
export const queryCountProductOrder = async (params) => {
  const res = await http.get(`${perfix}/order/countProductOrder`, { params })
  return res
}
/* top3 */
export const queryOrderTop3 = async (params) => {
  const res = await http.get(`${perfix}/order/top3`, { params })
  return res
}
